from django.urls import path
from . import views

urlpatterns = [
    path('books/', views.BookView.as_view()),
    path('books/<int:pk>/', views.BookDetailView.as_view()),
    path('authors/', views.AuthorView.as_view()),
    path('authors/<int:pk>/', views.AuthorDetailView.as_view()),
    path('publishs/', views.PublishView.as_view()),
    path('publishs/<int:pk>/', views.PublishDetailView.as_view()),

    # 前后端分离的接口
    path('userlogs/', views.UserLogView.as_view()),
]
